﻿using Naruto.TaskManagement.Entitys.Enums;
using Naruto.TaskManagement.Entitys.Models;
using Naruto.TaskManagement.Entitys.VM;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Naruto.TaskManagement.IRepository
{
    /// <summary>
    /// 组织邀请记录
    /// </summary>
    public interface IOrganizationInviteRecordRepository
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        Task Add(OrganizationInviteRecord info);
        /// <summary>
        /// 根据id 获取
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<GetByIdViewModel> GetById(string id);

        /// <summary>
        /// 更新状态
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task UpdateStatusById(string id, OrganizationInviteRecordStatusEnum statusEnum);
    }
}
